package cn.edu.scau.cmi.zhuangzhihong.adapter;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

public class client extends Application {
 public static void  main(String args[]) {
	 
	 launch(args); 
	 
 }

@Override
public void start(Stage primaryStage) throws Exception {
	// TODO 自动生成的方法存根
//	adaptee a = new adaptee();
//	 System.out.println(a.op());
//	 
//	 AdapterOfClass ac = new AdapterOfClass();
//	 System.out.println(ac.voltage());
//	 
//	 AdapterOfObject ao = new AdapterOfObject();
//	 System.out.println(ao.voltage());
//	 
	
	 try {
         // Read file fxml and draw interface.
     	
         Parent root = FXMLLoader.load(getClass()
                 .getResource("scence.fxml"));

         primaryStage.setTitle("适配器模式");
         primaryStage.setScene(new Scene(root));
         primaryStage.show();
        
     } catch(Exception e) {
         e.printStackTrace();
     }
 
}
}
